package com.lanou3g.ptp.organize.mapper;

import com.lanou3g.ptp.entity.Major;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MajorMapper {
    void addMajor(Major major);

    Major findById(Long id);

    List<Major> findByIds(Long[] ids);

    Major findByName(String name);

    List<Major> findAll();

    void updateById(@Param("id") Long id, @Param("major") Major major);

    void deleteById(Long id);

    void deleteByIds(Long[] ids);
}
